<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户添加和修改</title>
<link href="${css_ctx}/main_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/common/js/proving.js"></script>
</head>

<body class="content_bg1">

<!-- 标题-->	
<div class="content_tittle">
<c:if test="${!empty content_tittle}">
	${content_tittle}
	<c:remove var="content_tittle" scope="session"/>
</c:if>
</div>
<!-- 标题  end-->

<form action="${ctx }/users?cmd=input" method="post" name="form1">
<table width="820" border="0" cellspacing="0" cellpadding="0" class="content_input">
  <tr>
    <td height="30" align="center">用户角色:<input type="hidden" name="uid" value="${user.uid }"/></td>
    <td height="30">
     <c:if test="${!empty user.urole}">
      
      <input type="radio" name="urole" value="1" <c:if test="${'1' eq user.urole}">checked="checked"</c:if>/>段长组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="2" <c:if test="${'2' eq user.urole}">checked="checked"</c:if>/>审核组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="3" <c:if test="${'3' eq user.urole}">checked="checked"</c:if>/>编制组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="4" <c:if test="${'4' eq user.urole}">checked="checked"</c:if>/>车站组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="5" <c:if test="${'5' eq user.urole}">checked="checked"</c:if>/>学习用户&nbsp;&nbsp;&nbsp;
     </c:if>
     <c:if test="${empty user.urole}">
     
      <input type="radio" name="urole" value="1" checked="checked"/>段长组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="2"/>审核组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="3"/>编制组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="4"/>车站组&nbsp;&nbsp;&nbsp;
      <input type="radio" name="urole" value="5"/>学习用户&nbsp;&nbsp;&nbsp;
     </c:if>
    </td>
  </tr>
  <tr>
    <td height="30" align="center">所属车站:</td>
    <td height="30">
     <cwnuit:selecttagvalue currentValue="${user.tid}" id="tid" name="tid" data="${trains}"></cwnuit:selecttagvalue>
    </td>
  </tr>
  <tr>
    <td height="30" align="center">所属职名:</td>
    <td height="30">
     <select name="wid">
      <option value="0">非学习用户选择</option>
     <c:forEach items="${wtypes}" var="wtype">
       <option value="${wtype.wid }" <c:if test="${user.wid eq wtype.wid }">selected="selected"</c:if>>${wtype.wname }</option>
     </c:forEach>
     </select>【<font color="red">*</font>学习用户必选】
    </td>
  </tr>
  <tr>
    <td align="center" height="30">真实姓名:</td>
    <td>
     <input type="text" name="uface" value="${user.uface }"/> <font color="red" >*</font>
    </td>
  </tr>
  <tr>
    <td align="center" height="30">登陆账号:</td> 
    <td>
     <input type="text" name="uname" value="${user.uname }"/> <font color="red" >*</font>
    </td>
  </tr>
  <tr>
    <td align="center" height="30">登陆密码:</td> 
    <td>
     <input type="password" name="upass" value="${user.upass }"/> <font color="red" >*</font>
    </td>
  </tr>
  <tr>
    <td align="center" height="30">确认密码:</td> 
    <td>
     <input type="password" name="rupass" value="${user.upass }"/> <font color="red" >*</font>
    </td>
  </tr>
  <tr>
    <td height="30" align="center"></td>
    <td height="30" align="center">
    	<input type="submit" value="提交" onmousedown="return input_che(form1);" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
    	<input type="button" name="Submit" onclick="javascript:history.back(-1);" value="返回上一页" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
    </td>
  </tr>
</table>
</form>
<%@ include file="../../common/footer.jsp"%>
</body>
</html>
